package com.example.bean;

import java.util.Date;

public class Borrow {

    private int borrowId;

    private int userId;

    private String bookId;

    private Date borrowTime;

    private Date returnTime;

    private double fine;

    private String fineReason;

    private int userBorrowStatus;  //0为已还书，删除借阅信息; 1为未还书,显示在用户个人信息中

    @Override
    public String toString() {
        return "Borrow{" +
                "borrowId=" + borrowId +
                ", userId=" + userId +
                ", bookId='" + bookId + '\'' +
                ", borrowTime=" + borrowTime +
                ", returnTime=" + returnTime +
                ", fine=" + fine +
                ", fineReason='" + fineReason + '\'' +
                ", userBorrowStatus=" + userBorrowStatus +
                '}';
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }


    public int getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(int borrowId) {
        this.borrowId = borrowId;
    }

    public int getUserBorrowStatus() {
        return userBorrowStatus;
    }

    public void setUserBorrowStatus(int userBorrowStatus) {
        this.userBorrowStatus = userBorrowStatus;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public Date getBorrowTime() {
        return borrowTime;
    }

    public void setBorrowTime(Date borrowTime) {
        this.borrowTime = borrowTime;
    }

    public Date getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(Date returnTime) {
        this.returnTime = returnTime;
    }

    public double getFine() {
        return fine;
    }

    public void setFine(double fine) {
        this.fine = fine;
    }

    public String getFineReason() {
        return fineReason;
    }

    public void setFineReason(String fineReason) {
        this.fineReason = fineReason;
    }

}
